Naming conventions
There are special naming conventions for Delphi components used to differentiate
between each component type. In this convention we should add a prefix for each component
such as 'ed' for Edit boxes, 'la' for Labels and so on. For example if we want to
assign a name for password edit box we can select 'edPassword', and if we want to
assign a name for date label we can select 'laDate'. Other important component prefixes
are:
-------------------------------------------
Component Prefix
-------------------------------------------
Animate an
BitBtn bb
Button bt
ColorDialog co_
Calendar ca
ComboBox cb
DdeClientConv cc
ClientDataSet cd
ColorGrid cg
Chart ch
DdeCientItem ci
CheckBox ck
Coolbar co
ClientSocket cs
ChartFX cx
Database db
DriveComboBox dc
DBComboBox dcb
DBCtrlGrid dcg
DBChart dch
DBCheckBox dck
DBEdit dbe
DBImage dim
directoryListBox dl
DBListBox dlb
DBLookupComboBox dlcb
DBLookupCombo dlco
DBLookupListBox dllb
DBLookupList dlli
DataModule dm
DBMemo dme
DBNavigator dna
DirectoryOutLine do
DataSetTableProducer dp
DrawGrid dr
DBRadioGroup drg
DataSource ds
DateTimePicker dt
DBText dte
Edit ed
F1Book f1
FilterComboBox fc
FindDialog fi_
FileListBox fl
Form fm
FontDialog fo_
Gauge ga
GroupBox gb
Graph gr
GraphicsServer gs
HeaderControl hc
HTTPDispatcher hd
Header he
HotKey hk
HTMLPageProducer hp
HTMLQueryTableProducer hq
HTMLDataSetTableProducer ht
IBEventAlterer ie
ImageList il
Image im
Label la
ListBox lb
ListView lv
MaskEdit md
Memo me
MainMenu mm
MediaPlayer mp
MemoryDataSet ms
Notebook nb
Opendialog od_
OleContainer ol
OpenPictureDialog op_
Outline ou
Panel pa
PaintBox pb
PageControl pc
progressBar pr
PrintDialog pr_
PageProducer pp
PrinterSetupDialog ps_
PopupMenu pu
QueryTableProducer qp
QuickReport qr
Query qu
RadioButton rb
RichEdit re
ReplaceDialog re_
RadioGroup rg
Report rp
RemoteServer rs
ScrollBar sa
SaveDialg sa_
SpeedButton sb
DdeServerConv sc
SpinEdit sd
Session se
StringGrid sg
DdeServerItem si
Splitter sl
StoredProc sp_
SavePictureDialog sp_
ServerSocket ss
StatusBar st
SpinButton su
ScrollBox sx
Table ta
TrackBar tb
TabControl tc
Thread th
Timer ti
TabbedNoteBook tn
Toolbar to
TabSet ts
TreeView tv
UpDown ud
UpdateSQL us
VtChart vc
VSSpell vs
WebBrowser wb
WebDispatcher wd
WebSession ws
------------------------------------------
See also:
Standard coding techniques